package teleradiologia.domain;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


@SuppressWarnings("serial")
public class Ordering implements java.io.Serializable {

	private long id;
	private Technician technician;
	private Patient patient;
	private Ordertype ordertype;
	private Customer customer;
	private Diagnosticlab diagnosticlab;
	private Date orderdate;
	private String additionalinformations;
	private String status;
	@SuppressWarnings("unchecked")
	private Set diagnosyses = new HashSet(0);
	@SuppressWarnings("unchecked")
	private Set pictures = new HashSet(0);

	public Ordering() {
		this.status = "utworzone";
	}

	public Ordering(Patient patient, Ordertype ordertype,
			Customer customer, Date orderdate) {
		this.patient = patient;
		this.ordertype = ordertype;
		this.customer = customer;
		this.orderdate = orderdate;
		this.status = "utworzone";
	}

	public Ordering(Technician technician, Patient patient,
			Ordertype ordertype, Customer customer,
			Diagnosticlab diagnosticlab, Date orderdate,
			String additionalinformations) {
		this.technician = technician;
		this.patient = patient;
		this.ordertype = ordertype;
		this.customer = customer;
		this.diagnosticlab = diagnosticlab;
		this.orderdate = orderdate;
		this.additionalinformations = additionalinformations;
		this.status = "utworzone";
	}

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Technician getTechnician() {
		return this.technician;
	}

	public void setTechnician(Technician technician) {
		this.technician = technician;
	}

	public Patient getPatient() {
		return this.patient;
	}

	public void setPatient(Patient patient) {
		this.patient = patient;
	}

	public Ordertype getOrdertype() {
		return this.ordertype;
	}

	public void setOrdertype(Ordertype ordertype) {
		this.ordertype = ordertype;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Diagnosticlab getDiagnosticlab() {
		return this.diagnosticlab;
	}

	public void setDiagnosticlab(Diagnosticlab diagnosticlab) {
		this.diagnosticlab = diagnosticlab;
	}

	public Date getOrderdate() {
		return this.orderdate;
	}

	public void setOrderdate(Date orderdate) {
		this.orderdate = orderdate;
	}

	public String getAdditionalinformations() {
		return this.additionalinformations;
	}

	public void setAdditionalinformations(String additionalinformations) {
		this.additionalinformations = additionalinformations;
	}

	public Set getDiagnosyses() {
		return this.diagnosyses;
	}

	public void setDiagnosyses(Set diagnosyses) {
		this.diagnosyses = diagnosyses;
	}

	public Set getPictures() {
		return this.pictures;
	}

	public void setPictures(Set pictures) {
		this.pictures = pictures;
	}
	
	public void addPicture(Picture picture) {
		this.pictures.add(picture);
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
}
